//
//  Utility.h
//  collection
//
//  Created by 张靖 on 12/25/11.
//  Copyright (c) 2011 Tsinghua University. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Utility : NSObject

// Transform the time to the specified format, e.g. "2011.12.03" => "three days ago"
+ (NSString*)convertAbsoluteTimeToRelativeTime:(NSString *)absoluteTime;

+ (NSString*)transTimeToCurrentFormat:(NSDate*)time;

+ (NSDate*)convertStrToDate:(NSString*)dateStr;

// Retrieve the proper image size for several images
+ (CGSize)properSizeForDisplay:(NSArray*)imageArray;

// Retrieve the tag name in string from integer
+ (NSString*)tagNameFromIndex:(int)index;

// Resize pictures to proper size

@end
